package com.varian.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.varian.security.model.SecurityEntity;
import com.varian.tool.enums.UserStatusEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author ben
 * @since 2024/7/1
 */
@Data
@TableName(value = "varian_user", autoResultMap = true)
public class SysUser extends SecurityEntity {
    /**
     * 部门id
     */
    private Long deptId;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 用户头像
     */
    private String avatar;
    /**
     * 状态
     */
    private UserStatusEnum userStatus;
    /**
     * 最后登录时间
     */
    private LocalDateTime lastLoginTime;
    /**
     * 最后登录ip
     */
    private String lastLoginIp;
}
